<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Win32k: mnaccel.c 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Win32k
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('a00758.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#define-members">宏定义</a> &#124;
<a href="#func-members">函数</a>  </div>
  <div class="headertitle">
<div class="title">mnaccel.c 文件参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="a03629_source.html">precomp.h</a>&quot;</code><br />
</div>
<p><a href="a00758_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
宏定义</h2></td></tr>
<tr class="memitem:a217c980ac9e996a95b12e51927c1d81b"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00758.html#a217c980ac9e996a95b12e51927c1d81b">TA_DISABLED</a>&#160;&#160;&#160;1</td></tr>
<tr class="separator:a217c980ac9e996a95b12e51927c1d81b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:ad353d117c269a07a9acba77e1b8e3ed5"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00758.html#ad353d117c269a07a9acba77e1b8e3ed5">ItemContainingSubMenu</a> (<a class="el" href="a00365.html#af18dd4dd192e00a176acc4dc89084f34">PMENU</a> pmainMenu, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> wID)</td></tr>
<tr class="separator:ad353d117c269a07a9acba77e1b8e3ed5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa53730e02759f59818810d47bfabe94d"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00758.html#aa53730e02759f59818810d47bfabe94d">UT_FindTopLevelMenuIndex</a> (<a class="el" href="a00365.html#af18dd4dd192e00a176acc4dc89084f34">PMENU</a> pMenu, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> cmd)</td></tr>
<tr class="separator:aa53730e02759f59818810d47bfabe94d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a66f9623d44f250d5c829268cce1fe5a4"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00758.html#a66f9623d44f250d5c829268cce1fe5a4">xxxHiliteMenuItem</a> (<a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a> pwnd, <a class="el" href="a00365.html#af18dd4dd192e00a176acc4dc89084f34">PMENU</a> pMenu, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> cmd, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> flags)</td></tr>
<tr class="separator:a66f9623d44f250d5c829268cce1fe5a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2d8243d11664788f3b41f9b1b0dfb3cf"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00758.html#a2d8243d11664788f3b41f9b1b0dfb3cf">xxxTA_AccelerateMenu</a> (<a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a> pwnd, <a class="el" href="a00365.html#af18dd4dd192e00a176acc4dc89084f34">PMENU</a> pMenu, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> cmd)</td></tr>
<tr class="separator:a2d8243d11664788f3b41f9b1b0dfb3cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a151048ee0d1cd089812bfba3245f09d5"><td class="memItemLeft" align="right" valign="top">HANDLE <a class="el" href="a00962.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00758.html#a151048ee0d1cd089812bfba3245f09d5">_CreateAcceleratorTable</a> (LPACCEL paccel, int cbAccel)</td></tr>
<tr class="separator:a151048ee0d1cd089812bfba3245f09d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab9ab23644000ea076c541a5b63521b97"><td class="memItemLeft" align="right" valign="top">int <a class="el" href="a00962.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00758.html#ab9ab23644000ea076c541a5b63521b97">_CopyAcceleratorTable</a> (<a class="el" href="a00899.html#ae32c9ddc596e9e0cc6dd465bea1c44b0">LPACCELTABLE</a> pat, LPACCEL paccel, int cAccel)</td></tr>
<tr class="separator:ab9ab23644000ea076c541a5b63521b97"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad24814b9cb43dcb4fcc3d642fe0f1aa9"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00758.html#ad24814b9cb43dcb4fcc3d642fe0f1aa9">xxxTranslateAccelerator</a> (<a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a> pwnd, <a class="el" href="a00899.html#ae32c9ddc596e9e0cc6dd465bea1c44b0">LPACCELTABLE</a> pat, LPMSG lpMsg)</td></tr>
<tr class="separator:ad24814b9cb43dcb4fcc3d642fe0f1aa9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3be166f54239bf3e2b1b06ab17687c33"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00758.html#a3be166f54239bf3e2b1b06ab17687c33">SystoChar</a> (<a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> message, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> lParam)</td></tr>
<tr class="separator:a3be166f54239bf3e2b1b06ab17687c33"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">宏定义说明</h2>
<a id="a217c980ac9e996a95b12e51927c1d81b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a217c980ac9e996a95b12e51927c1d81b">&#9670;&nbsp;</a></span>TA_DISABLED</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TA_DISABLED&#160;&#160;&#160;1</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00758_source.html">mnaccel.c</a> 第 <a class="el" href="a00758_source.html#l00145">145</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">函数说明</h2>
<a id="ab9ab23644000ea076c541a5b63521b97"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab9ab23644000ea076c541a5b63521b97">&#9670;&nbsp;</a></span>_CopyAcceleratorTable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="a00962.html#a428a91acf2c2439dc1a257708ee1f805">APIENTRY</a> _CopyAcceleratorTable </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00899.html#ae32c9ddc596e9e0cc6dd465bea1c44b0">LPACCELTABLE</a>&#160;</td>
          <td class="paramname"><em>pat</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LPACCEL&#160;</td>
          <td class="paramname"><em>paccel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>cAccel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00758_source.html">mnaccel.c</a> 第 <a class="el" href="a00758_source.html#l00250">250</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;{</div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;    <span class="keywordtype">int</span> i;</div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160; </div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;    <span class="keywordflow">if</span> (paccel == NULL) {</div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;        cAccel = pat-&gt;<a class="code" href="a02833.html#a119a00bf39188d668c35b5ed2a657a80">cAccel</a>;</div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;        <span class="keywordflow">if</span> (cAccel &gt; (<span class="keywordtype">int</span>)pat-&gt;<a class="code" href="a02833.html#a119a00bf39188d668c35b5ed2a657a80">cAccel</a>)</div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;            cAccel = pat-&gt;<a class="code" href="a02833.html#a119a00bf39188d668c35b5ed2a657a80">cAccel</a>;</div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160; </div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;        <span class="keywordflow">for</span> (i = 0; i &lt; cAccel; i++) {</div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;            ACCEL UNALIGNED * paccelTemp;    <span class="comment">// !!! temp compiler workaround</span></div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160; </div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;            paccelTemp = &amp;pat-&gt;<a class="code" href="a02833.html#ad059ba09395cf3fc9c50ecd37b381e30">accel</a>[i];</div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;            paccel[i] = *paccelTemp;</div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;            paccel[i].fVirt &amp;= ~FLASTKEY;</div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;        }</div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;    }</div>
<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160; </div>
<div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;    <span class="keywordflow">return</span> cAccel;</div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00899_source.html#l01856">tagACCELTABLE::accel</a> , 以及 <a class="el" href="a00899_source.html#l01855">tagACCELTABLE::cAccel</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a03614_source.html#l06910">NtUserCopyAcceleratorTable()</a>.</p>

</div>
</div>
<a id="a151048ee0d1cd089812bfba3245f09d5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a151048ee0d1cd089812bfba3245f09d5">&#9670;&nbsp;</a></span>_CreateAcceleratorTable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">HANDLE _CreateAcceleratorTable </td>
          <td>(</td>
          <td class="paramtype">LPACCEL&#160;</td>
          <td class="paramname"><em>paccel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>cbAccel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00758_source.html">mnaccel.c</a> 第 <a class="el" href="a00758_source.html#l00216">216</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;{</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;    <a class="code" href="a02833.html">LPACCELTABLE</a> pat;</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;    <span class="keywordtype">int</span> size;</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160; </div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;    size = cbAccel + <span class="keyword">sizeof</span>(<a class="code" href="a00899.html#a4915e3a8051f894bf2b7b95d121e9014">ACCELTABLE</a>) - <span class="keyword">sizeof</span>(ACCEL);</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160; </div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;    pat = (<a class="code" href="a00899.html#ae32c9ddc596e9e0cc6dd465bea1c44b0">LPACCELTABLE</a>)<a class="code" href="a00695.html#a857d137de0592e36caec4b6e0f5021cb">HMAllocObject</a>(<a class="code" href="a00257.html#a8315d2c807ba18ba9e528c40614b6173">PtiCurrent</a>(), NULL, TYPE_ACCELTABLE, size);</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;    <span class="keywordflow">if</span> (pat == NULL)</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;        <span class="keywordflow">return</span> NULL;</div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160; </div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;    <span class="keywordflow">try</span> {</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;        RtlCopyMemory(pat-&gt;<a class="code" href="a02833.html#ad059ba09395cf3fc9c50ecd37b381e30">accel</a>, paccel, cbAccel);</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;    } except (EXCEPTION_EXECUTE_HANDLER) {</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;        <a class="code" href="a00695.html#a4e6ee8871cf6323bdd048608605667b1">HMFreeObject</a>(pat);</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;        <span class="keywordflow">return</span> NULL;</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;    }</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160; </div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;    pat-&gt;<a class="code" href="a02833.html#a119a00bf39188d668c35b5ed2a657a80">cAccel</a> = cbAccel / <span class="keyword">sizeof</span>(ACCEL);</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;    pat-&gt;<a class="code" href="a02833.html#ad059ba09395cf3fc9c50ecd37b381e30">accel</a>[pat-&gt;<a class="code" href="a02833.html#a119a00bf39188d668c35b5ed2a657a80">cAccel</a> - 1].fVirt |= FLASTKEY;</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160; </div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;    <span class="keywordflow">return</span> pat;</div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00899_source.html#l01856">tagACCELTABLE::accel</a>, <a class="el" href="a00899_source.html#l01855">tagACCELTABLE::cAccel</a>, <a class="el" href="a00695_source.html#l00314">HMAllocObject()</a>, <a class="el" href="a00695_source.html#l00575">HMFreeObject()</a> , 以及 <a class="el" href="a00263_source.html#l00526">PtiCurrent()</a>.</p>

</div>
</div>
<a id="ad353d117c269a07a9acba77e1b8e3ed5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad353d117c269a07a9acba77e1b8e3ed5">&#9670;&nbsp;</a></span>ItemContainingSubMenu()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ItemContainingSubMenu </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#af18dd4dd192e00a176acc4dc89084f34">PMENU</a>&#160;</td>
          <td class="paramname"><em>pmainMenu</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>wID</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00758_source.html">mnaccel.c</a> 第 <a class="el" href="a00758_source.html#l00022">22</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;{</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;    <span class="keywordtype">int</span> i;</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;    <a class="code" href="a02621.html">PITEM</a> pItem;</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160; </div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;    <span class="keywordflow">if</span> ((i = pmainMenu-&gt;<a class="code" href="a02625.html#a3bf37b161e5822f38a2b0bc722c5ac50">cItems</a> - 1) == -1)</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;        <span class="keywordflow">return</span> -1;</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160; </div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    pItem = &amp;pmainMenu-&gt;<a class="code" href="a02625.html#ae6172b08ed30615d88290ea4b4b6a70c">rgItems</a>[i];</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160; </div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="comment">     * Scan through mainMenu&#39;s items (bottom up) until an item is found</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="comment">     * that either has subMenu or an ancestor of subMenu as it&#39;s drop</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="comment">     * down menu</span></div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160; </div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="comment">     * Make sure this works for new apps that set IDs for popup items that</span></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="comment">     * aren&#39;t the same as the HMENU_16 value of the submenu.  Accelerators</span></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="comment">     * for disabled items will get generated otherwise, like in Exchange.</span></div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <span class="keywordflow">while</span> (i &gt;= 0)</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    {</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;        <span class="keywordflow">if</span> (pItem-&gt;<a class="code" href="a02621.html#ac10ce08286532c51caca752ec8eb7e99">spSubMenu</a> == NULL)</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;        {</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;            <span class="comment">//</span></div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;            <span class="comment">// Does this command match?</span></div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;            <span class="comment">//</span></div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;            <span class="keywordflow">if</span> (pItem-&gt;<a class="code" href="a02621.html#a549e2c4984de0719485737b35d6fc4b1">wID</a> == wID)</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;        }</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;        <span class="keywordflow">else</span></div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        {</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;            <span class="comment">//</span></div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;            <span class="comment">// Does this popup match?</span></div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;            <span class="comment">//</span></div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;            <span class="keywordflow">if</span> (pItem-&gt;<a class="code" href="a02621.html#ac10ce08286532c51caca752ec8eb7e99">spSubMenu</a> == (<a class="code" href="a02625.html">PMENU</a>)wID)</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160; </div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;            <span class="comment">//</span></div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;            <span class="comment">// Go recurse through this popup and see if we have a match on</span></div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;            <span class="comment">// one of our children.</span></div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;            <span class="comment">//</span></div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="a00758.html#ad353d117c269a07a9acba77e1b8e3ed5">ItemContainingSubMenu</a>(pItem-&gt;<a class="code" href="a02621.html#ac10ce08286532c51caca752ec8eb7e99">spSubMenu</a>, wID) != -1)</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;        }</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160; </div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;        i--;</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;        pItem--;</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    }</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160; </div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    <span class="keywordflow">return</span> i;</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00365_source.html#l02000">tagMENU::cItems</a>, <a class="el" href="a00365_source.html#l02005">tagMENU::rgItems</a>, <a class="el" href="a00365_source.html#l01962">tagITEM::spSubMenu</a> , 以及 <a class="el" href="a00365_source.html#l01961">tagITEM::wID</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00758_source.html#l00086">UT_FindTopLevelMenuIndex()</a>.</p>

</div>
</div>
<a id="a3be166f54239bf3e2b1b06ab17687c33"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3be166f54239bf3e2b1b06ab17687c33">&#9670;&nbsp;</a></span>SystoChar()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SystoChar </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>message</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>lParam</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00758_source.html">mnaccel.c</a> 第 <a class="el" href="a00758_source.html#l00491">491</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00494"></a><span class="lineno">  494</span>&#160;{</div>
<div class="line"><a name="l00495"></a><span class="lineno">  495</span>&#160;    <span class="keywordflow">if</span> (CheckMsgFilter(message, WM_SYSKEYDOWN, WM_SYSDEADCHAR) &amp;&amp;</div>
<div class="line"><a name="l00496"></a><span class="lineno">  496</span>&#160;            !(HIWORD(lParam) &amp; <a class="code" href="a00131.html#a7ba1114bb968c151d68ff99178493f07">SYS_ALTERNATE</a>))</div>
<div class="line"><a name="l00497"></a><span class="lineno">  497</span>&#160;        <span class="keywordflow">return</span> (message - (WM_SYSKEYDOWN - WM_KEYDOWN));</div>
<div class="line"><a name="l00498"></a><span class="lineno">  498</span>&#160; </div>
<div class="line"><a name="l00499"></a><span class="lineno">  499</span>&#160;    <span class="keywordflow">return</span> message;</div>
<div class="line"><a name="l00500"></a><span class="lineno">  500</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00365_source.html#l01893">SYS_ALTERNATE</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00833_source.html#l01745">xxxSBTrackLoop()</a> , 以及 <a class="el" href="a00758_source.html#l00284">xxxTranslateAccelerator()</a>.</p>

</div>
</div>
<a id="aa53730e02759f59818810d47bfabe94d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa53730e02759f59818810d47bfabe94d">&#9670;&nbsp;</a></span>UT_FindTopLevelMenuIndex()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int UT_FindTopLevelMenuIndex </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#af18dd4dd192e00a176acc4dc89084f34">PMENU</a>&#160;</td>
          <td class="paramname"><em>pMenu</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>cmd</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00758_source.html">mnaccel.c</a> 第 <a class="el" href="a00758_source.html#l00086">86</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;{</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    <a class="code" href="a02625.html">PMENU</a> pMenuItemIsOn;</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    <a class="code" href="a02621.html">PITEM</a>  pItem;</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160; </div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;<span class="comment">     * Get a pointer to the item we are searching for.</span></div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    pItem = <a class="code" href="a00365.html#a600b2eecb3e014ccef3cbdb2b38209b5">MNLookUpItem</a>(pMenu, cmd, FALSE, &amp;pMenuItemIsOn);</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    <span class="keywordflow">if</span> ((pItem == NULL) || (pItem-&gt;<a class="code" href="a02621.html#ac10ce08286532c51caca752ec8eb7e99">spSubMenu</a> != NULL))</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;        <span class="keywordflow">return</span>(-1);</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160; </div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;<span class="comment">     * We want to search for the item that contains pMenuItemIsOn,</span></div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;<span class="comment">     * unless this is a top-level item without a dropdown, in which</span></div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;<span class="comment">     * case we want to search for cmd.</span></div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    <span class="keywordflow">if</span> (pMenuItemIsOn != pMenu)</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;        cmd = (<a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>)pMenuItemIsOn;</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160; </div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="a00758.html#ad353d117c269a07a9acba77e1b8e3ed5">ItemContainingSubMenu</a>(pMenu, cmd);</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00758_source.html#l00022">ItemContainingSubMenu()</a>, <a class="el" href="a03752_source.html#l00334">MNLookUpItem()</a>, <a class="el" href="a00365_source.html#l01962">tagITEM::spSubMenu</a> , 以及 <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00758_source.html#l00119">xxxHiliteMenuItem()</a> , 以及 <a class="el" href="a00758_source.html#l00147">xxxTA_AccelerateMenu()</a>.</p>

</div>
</div>
<a id="a66f9623d44f250d5c829268cce1fe5a4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a66f9623d44f250d5c829268cce1fe5a4">&#9670;&nbsp;</a></span>xxxHiliteMenuItem()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL xxxHiliteMenuItem </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a>&#160;</td>
          <td class="paramname"><em>pwnd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00365.html#af18dd4dd192e00a176acc4dc89084f34">PMENU</a>&#160;</td>
          <td class="paramname"><em>pMenu</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>cmd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>flags</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00758_source.html">mnaccel.c</a> 第 <a class="el" href="a00758_source.html#l00119">119</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;{</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160; </div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;    <span class="keywordflow">if</span> (!(flags &amp; MF_BYPOSITION))</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;        cmd = (<a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>)<a class="code" href="a00758.html#aa53730e02759f59818810d47bfabe94d">UT_FindTopLevelMenuIndex</a>(pMenu, cmd);</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160; </div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;    <span class="keywordflow">if</span> (!TestMF(pMenu, MFISPOPUP))</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;        <a class="code" href="a00767.html#ac48c8123933cf1b3a4ba8916601b65a3">xxxMNRecomputeBarIfNeeded</a>(pwnd, pMenu);</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160; </div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;    <a class="code" href="a00773.html#a27c05b907e80b8bbf86c005d8ad434bb">xxxMNInvertItem</a>(pwnd, pMenu, cmd, pwnd, (flags &amp; MF_HILITE));</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160; </div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT()</a>, <a class="el" href="a00758_source.html#l00086">UT_FindTopLevelMenuIndex()</a>, <a class="el" href="a00773_source.html#l01470">xxxMNInvertItem()</a> , 以及 <a class="el" href="a00767_source.html#l00768">xxxMNRecomputeBarIfNeeded()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a03614_source.html#l04056">NtUserHiliteMenuItem()</a>.</p>

</div>
</div>
<a id="a2d8243d11664788f3b41f9b1b0dfb3cf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2d8243d11664788f3b41f9b1b0dfb3cf">&#9670;&nbsp;</a></span>xxxTA_AccelerateMenu()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> xxxTA_AccelerateMenu </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a>&#160;</td>
          <td class="paramname"><em>pwnd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00365.html#af18dd4dd192e00a176acc4dc89084f34">PMENU</a>&#160;</td>
          <td class="paramname"><em>pMenu</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>cmd</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00758_source.html">mnaccel.c</a> 第 <a class="el" href="a00758_source.html#l00147">147</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;{</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;    <span class="keywordtype">int</span> i;</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;    <a class="code" href="a02621.html">PITEM</a> pItem;</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;    BOOL fDisabledTop;</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    BOOL fDisabled;</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;    <a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> rgfItem;</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;    <a class="code" href="a02625.html">PMENU</a> pMenuItemIsOn;</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160; </div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;    <a class="code" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock</a>(pwnd);</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;    <a class="code" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock</a>(pMenu);</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160; </div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;    rgfItem = 0;</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;    <span class="keywordflow">if</span> (pMenu != NULL) {</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;        <span class="keywordflow">if</span> ((i = <a class="code" href="a00758.html#aa53730e02759f59818810d47bfabe94d">UT_FindTopLevelMenuIndex</a>(pMenu, cmd)) != -1) {</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160; </div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;<span class="comment">             * 2 means we found an item</span></div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;            rgfItem = 2;</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160; </div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;            <a class="code" href="a00842.html#a69cf2e14dcefd941469ad5126e40f79a">xxxSendMessage</a>(pwnd, WM_INITMENU, (<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)PtoHq(pMenu), 0L);</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;            <span class="keywordflow">if</span> ((<a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>)i &gt;= pMenu-&gt;<a class="code" href="a02625.html#a3bf37b161e5822f38a2b0bc722c5ac50">cItems</a>) <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;            pItem = &amp;pMenu-&gt;<a class="code" href="a02625.html#ae6172b08ed30615d88290ea4b4b6a70c">rgItems</a>[i];</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;            <span class="keywordflow">if</span> (pItem-&gt;<a class="code" href="a02621.html#ac10ce08286532c51caca752ec8eb7e99">spSubMenu</a> != NULL) {</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;                <a class="code" href="a00842.html#a69cf2e14dcefd941469ad5126e40f79a">xxxSendMessage</a>(pwnd, WM_INITMENUPOPUP, (<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)PtoHq(pItem-&gt;<a class="code" href="a02621.html#ac10ce08286532c51caca752ec8eb7e99">spSubMenu</a>),</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;                        (<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)i);</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;                <span class="keywordflow">if</span> ((<a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>)i &gt;= pMenu-&gt;<a class="code" href="a02625.html#a3bf37b161e5822f38a2b0bc722c5ac50">cItems</a>) <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;                fDisabledTop = TestMFS(pItem,MFS_GRAYED);</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;            } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;                fDisabledTop = FALSE;</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;            }</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160; </div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;            pItem = <a class="code" href="a00365.html#a600b2eecb3e014ccef3cbdb2b38209b5">MNLookUpItem</a>(pMenu, cmd, FALSE, &amp;pMenuItemIsOn);</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160; </div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;<span class="comment">             * If the item was removed by the app in response to either of</span></div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;<span class="comment">             * the above messages, pItem will be NULL.</span></div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;            <span class="keywordflow">if</span> (pItem == NULL)</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;                rgfItem = 0;</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;            {</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160; </div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;                fDisabled = TestMFS(pItem,MFS_GRAYED);</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160; </div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;<span class="comment">             * This 1 bit means it&#39;s disabled or it&#39;s &#39;parent&#39; is disabled.</span></div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;                <span class="keywordflow">if</span> (fDisabled || fDisabledTop)</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;                    rgfItem |= <a class="code" href="a00758.html#a217c980ac9e996a95b12e51927c1d81b">TA_DISABLED</a>;</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;            }</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;        }</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;    }</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160; </div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;    <span class="keywordflow">return</span> rgfItem;</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock()</a>, <a class="el" href="a00365_source.html#l02000">tagMENU::cItems</a>, <a class="el" href="a00563_source.html#l00175">DWORD</a>, <a class="el" href="a03752_source.html#l00334">MNLookUpItem()</a>, <a class="el" href="a00365_source.html#l02005">tagMENU::rgItems</a>, <a class="el" href="a00365_source.html#l01962">tagITEM::spSubMenu</a>, <a class="el" href="a00758_source.html#l00145">TA_DISABLED</a>, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT()</a>, <a class="el" href="a00758_source.html#l00086">UT_FindTopLevelMenuIndex()</a> , 以及 <a class="el" href="a00842_source.html#l00613">xxxSendMessage()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00758_source.html#l00284">xxxTranslateAccelerator()</a>.</p>

</div>
</div>
<a id="ad24814b9cb43dcb4fcc3d642fe0f1aa9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad24814b9cb43dcb4fcc3d642fe0f1aa9">&#9670;&nbsp;</a></span>xxxTranslateAccelerator()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int xxxTranslateAccelerator </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00365.html#a1a2ef1c363aa0787a8f8a7dde2a34aaf">PWND</a>&#160;</td>
          <td class="paramname"><em>pwnd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00899.html#ae32c9ddc596e9e0cc6dd465bea1c44b0">LPACCELTABLE</a>&#160;</td>
          <td class="paramname"><em>pat</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LPMSG&#160;</td>
          <td class="paramname"><em>lpMsg</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00758_source.html">mnaccel.c</a> 第 <a class="el" href="a00758_source.html#l00284">284</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;{</div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;    <a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> cmd;</div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;    BOOL fVirt;</div>
<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;    <a class="code" href="a02625.html">PMENU</a> pMenu;</div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;    BOOL fFound;</div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;    <a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> flags;</div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;    <a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> keystate;</div>
<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;    <a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> message;</div>
<div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;    <a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> rgfItem;</div>
<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;    BOOL fDisabled;</div>
<div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;    BOOL fSystemMenu;</div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;    LPACCEL paccel;</div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;    <a class="code" href="a01881.html">TL</a> tlpMenu;</div>
<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;    <span class="keywordtype">int</span> vkAlt, vkCtrl;</div>
<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160; </div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;    <a class="code" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock</a>(pwnd);</div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;    <a class="code" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock</a>(pat);</div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160; </div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;    paccel = pat-&gt;<a class="code" href="a02833.html#ad059ba09395cf3fc9c50ecd37b381e30">accel</a>;</div>
<div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160; </div>
<div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;    fFound = FALSE;</div>
<div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160; </div>
<div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;    message = (<a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>)<a class="code" href="a00758.html#a3be166f54239bf3e2b1b06ab17687c33">SystoChar</a>(lpMsg-&gt;message, (<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)lpMsg-&gt;lParam);</div>
<div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160; </div>
<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;    <span class="keywordflow">switch</span> (message) {</div>
<div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;    <span class="keywordflow">case</span> WM_KEYDOWN:</div>
<div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;    <span class="keywordflow">case</span> WM_SYSKEYDOWN:</div>
<div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;        fVirt = TRUE;</div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160; </div>
<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;    <span class="keywordflow">case</span> WM_CHAR:</div>
<div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;    <span class="keywordflow">case</span> WM_SYSCHAR:</div>
<div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;        fVirt = FALSE;</div>
<div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160; </div>
<div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;    <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;    }</div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160; </div>
<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;<span class="comment">     * Many kbd layouts use the r.h. Alt key like a shift key to generate some</span></div>
<div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;<span class="comment">     * additional chars: this r.h. Alt (or &quot;AltGr&quot;) key synthesizes a left Ctrl</span></div>
<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;<span class="comment">     * (for backward compatibility with 84-key kbds), so when the AltGr key is</span></div>
<div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;<span class="comment">     * down neither the left Ctrl nor the right Alt should be counted as part</span></div>
<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;<span class="comment">     * of the keystate.</span></div>
<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;    keystate = 0;</div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;    <a class="code" href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a>(<a class="code" href="a00257.html#a8315d2c807ba18ba9e528c40614b6173">PtiCurrent</a>()-&gt;spklActive != NULL);</div>
<div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;    <span class="keywordflow">if</span> ((<a class="code" href="a00257.html#a8315d2c807ba18ba9e528c40614b6173">PtiCurrent</a>()-&gt;spklActive-&gt;spkf-&gt;pKbdTbl-&gt;fLocaleFlags &amp; <a class="code" href="a00347.html#acf2af6af829e08806d9d90517f16c168">KLLF_ALTGR</a>) &amp;&amp;</div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;            (<a class="code" href="a00365.html#a4f33bf462d284b706f2f453e2bddd203">_GetKeyState</a>(VK_RMENU) &amp; 0x8000)) {</div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;<span class="comment">         * count only right hand Ctrl as a Ctrl keystate</span></div>
<div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;<span class="comment">         * count only left hand Alt as a Alt keystate</span></div>
<div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;        vkCtrl = VK_RCONTROL;</div>
<div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;        vkAlt = VK_LMENU;</div>
<div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;<span class="comment">         * count left or right hand Ctrl as a Ctrl keystate</span></div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;<span class="comment">         * count left or right hand Alt as a Alt keystate</span></div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;        vkAlt = VK_MENU;</div>
<div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;        vkCtrl = VK_CONTROL;</div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;    }</div>
<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160; </div>
<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="a00365.html#a4f33bf462d284b706f2f453e2bddd203">_GetKeyState</a>(vkCtrl) &amp; 0x8000) {</div>
<div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;        keystate |= FCONTROL;</div>
<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;    }</div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="a00365.html#a4f33bf462d284b706f2f453e2bddd203">_GetKeyState</a>(vkAlt) &amp; 0x8000) {</div>
<div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;        keystate |= FALT;</div>
<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;    }</div>
<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="a00365.html#a4f33bf462d284b706f2f453e2bddd203">_GetKeyState</a>(VK_SHIFT) &amp; 0x8000) {</div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;        keystate |= FSHIFT;</div>
<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;    }</div>
<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160; </div>
<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;    <span class="keywordflow">do</span></div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;    {</div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;        flags = paccel-&gt;fVirt;</div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;        <span class="keywordflow">if</span> ( (<a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>)paccel-&gt;key != lpMsg-&gt;wParam ||</div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;             ((fVirt != 0) != ((flags &amp; FVIRTKEY) != 0))) {</div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;            <span class="keywordflow">goto</span> Next;</div>
<div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;        }</div>
<div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160; </div>
<div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;        <span class="keywordflow">if</span> (fVirt &amp;&amp; ((keystate &amp; (FSHIFT | FCONTROL)) != (flags &amp; (FSHIFT | FCONTROL)))) {</div>
<div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;            <span class="keywordflow">goto</span> Next;</div>
<div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;        }</div>
<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160; </div>
<div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;        <span class="keywordflow">if</span> ((keystate &amp; FALT) != (flags &amp; FALT)) {</div>
<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;            <span class="keywordflow">goto</span> Next;</div>
<div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;        }</div>
<div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160; </div>
<div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;        fFound = TRUE;</div>
<div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;        fSystemMenu = 0;</div>
<div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160;        rgfItem = 0;</div>
<div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160; </div>
<div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;        cmd = paccel-&gt;cmd;</div>
<div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160;        <span class="keywordflow">if</span> (cmd != 0) {</div>
<div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160; </div>
<div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;<span class="comment">             * The order of these next two if&#39;s is important for default</span></div>
<div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;<span class="comment">             * situations.  Also, just check accelerators in the system</span></div>
<div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;<span class="comment">             * menu of child windows passed to TranslateAccelerator.</span></div>
<div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;            pMenu = pwnd-&gt;<a class="code" href="a02581.html#ad680eabbc65eb4d160362e2c73a19994">spmenu</a>;</div>
<div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;            rgfItem = 0;</div>
<div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160; </div>
<div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;            <span class="keywordflow">if</span> (!TestWF(pwnd, WFCHILD)) {</div>
<div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;                <a class="code" href="a00899.html#abfae1dfb48db23dcea4494f7990ad6a6">ThreadLock</a>(pMenu, &amp;tlpMenu);</div>
<div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;                rgfItem = <a class="code" href="a00758.html#a2d8243d11664788f3b41f9b1b0dfb3cf">xxxTA_AccelerateMenu</a>(pwnd, pMenu, cmd);</div>
<div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;                ThreadUnlock(&amp;tlpMenu);</div>
<div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;            }</div>
<div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160; </div>
<div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;            <span class="keywordflow">if</span> (TestWF(pwnd, WFCHILD) || rgfItem == 0) {</div>
<div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;                pMenu = pwnd-&gt;<a class="code" href="a02581.html#aa9cb183920d0decbae34685c0451ff0f">spmenuSys</a>;</div>
<div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;                <span class="keywordflow">if</span> (pMenu == NULL &amp;&amp; TestWF(pwnd, WFSYSMENU)) {</div>
<div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160; </div>
<div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160;                    <span class="comment">/*</span></div>
<div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;<span class="comment">                     * Change owner so this app can access this menu.</span></div>
<div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;<span class="comment">                     */</span></div>
<div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;                    pMenu = pwnd-&gt;<a class="code" href="a02581.html#a6be2d067ba15d4ec8cfc2e87922094f5">head</a>.rpdesk-&gt;spmenuSys;</div>
<div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160;                    <span class="keywordflow">if</span> (pMenu == NULL) {</div>
<div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;                        <a class="code" href="a02553.html">PHE</a> phe;</div>
<div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;                        UNICODE_STRING strMenuName;</div>
<div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160; </div>
<div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160;                        <a class="code" href="a00608.html#a2f03d318ac2c5bd1f77147cebddfaf75">RtlInitUnicodeStringOrId</a>(&amp;strMenuName,</div>
<div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;                                MAKEINTRESOURCE(ID_SYSMENU));</div>
<div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;                        pMenu = <a class="code" href="a00899.html#a53010a6d3530f652eb7b7d22f9113838">xxxClientLoadMenu</a>(NULL, &amp;strMenuName);</div>
<div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;                        Lock(&amp;pwnd-&gt;<a class="code" href="a02581.html#a6be2d067ba15d4ec8cfc2e87922094f5">head</a>.rpdesk-&gt;spmenuSys, pMenu);</div>
<div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160; </div>
<div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;                        <span class="comment">/*</span></div>
<div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;<span class="comment">                         * Set the owner to NULL to specify system ownership.</span></div>
<div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160;<span class="comment">                         */</span></div>
<div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160;                        <span class="keywordflow">if</span> (pMenu != NULL) {</div>
<div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;                            phe = HMPheFromObject(pMenu);</div>
<div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;                            phe-&gt;<a class="code" href="a02553.html#a9151e22fb7a09159687c55acdeb8be14">pOwner</a> = NULL;</div>
<div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;                        }</div>
<div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;                    }</div>
<div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160; </div>
<div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160;                    <span class="comment">/*</span></div>
<div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160;<span class="comment">                     * Must reset the system menu for this window.</span></div>
<div class="line"><a name="l00428"></a><span class="lineno">  428</span>&#160;<span class="comment">                     */</span></div>
<div class="line"><a name="l00429"></a><span class="lineno">  429</span>&#160;                    <a class="code" href="a00797.html#a4b97bcc210438bef55a6dfac540effb3">SetSysMenu</a>(pwnd);</div>
<div class="line"><a name="l00430"></a><span class="lineno">  430</span>&#160;                }</div>
<div class="line"><a name="l00431"></a><span class="lineno">  431</span>&#160; </div>
<div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160;                <a class="code" href="a00899.html#abfae1dfb48db23dcea4494f7990ad6a6">ThreadLock</a>(pMenu, &amp;tlpMenu);</div>
<div class="line"><a name="l00433"></a><span class="lineno">  433</span>&#160;                <span class="keywordflow">if</span> ((rgfItem = <a class="code" href="a00758.html#a2d8243d11664788f3b41f9b1b0dfb3cf">xxxTA_AccelerateMenu</a>(pwnd, pMenu, cmd)) != 0) {</div>
<div class="line"><a name="l00434"></a><span class="lineno">  434</span>&#160;                    fSystemMenu = TRUE;</div>
<div class="line"><a name="l00435"></a><span class="lineno">  435</span>&#160;                }</div>
<div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160;                ThreadUnlock(&amp;tlpMenu);</div>
<div class="line"><a name="l00437"></a><span class="lineno">  437</span>&#160;            }</div>
<div class="line"><a name="l00438"></a><span class="lineno">  438</span>&#160;        }</div>
<div class="line"><a name="l00439"></a><span class="lineno">  439</span>&#160; </div>
<div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160;        fDisabled = TestWF(pwnd, WFDISABLED);</div>
<div class="line"><a name="l00441"></a><span class="lineno">  441</span>&#160; </div>
<div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160;<span class="comment">         * Send only if:  1.  The Item is not disabled, AND</span></div>
<div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160;<span class="comment">         *                2.  The Window&#39;s not being captured AND</span></div>
<div class="line"><a name="l00445"></a><span class="lineno">  445</span>&#160;<span class="comment">         *                3.  The Window&#39;s not minimzed, OR</span></div>
<div class="line"><a name="l00446"></a><span class="lineno">  446</span>&#160;<span class="comment">         *                4.  The Window&#39;s minimized but the Item is in</span></div>
<div class="line"><a name="l00447"></a><span class="lineno">  447</span>&#160;<span class="comment">         *                   the System Menu.</span></div>
<div class="line"><a name="l00448"></a><span class="lineno">  448</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00449"></a><span class="lineno">  449</span>&#160;        <span class="keywordflow">if</span> (!(rgfItem &amp; <a class="code" href="a00758.html#a217c980ac9e996a95b12e51927c1d81b">TA_DISABLED</a>) &amp;&amp;</div>
<div class="line"><a name="l00450"></a><span class="lineno">  450</span>&#160;                !(rgfItem &amp;&amp; TestWF(pwnd, WFICONIC) &amp;&amp; !fSystemMenu)) {</div>
<div class="line"><a name="l00451"></a><span class="lineno">  451</span>&#160;            <span class="keywordflow">if</span> (!(rgfItem != 0 &amp;&amp; (<a class="code" href="a00257.html#a8315d2c807ba18ba9e528c40614b6173">PtiCurrent</a>()-&gt;pq-&gt;spwndCapture != NULL ||</div>
<div class="line"><a name="l00452"></a><span class="lineno">  452</span>&#160;                    fDisabled))) {</div>
<div class="line"><a name="l00453"></a><span class="lineno">  453</span>&#160; </div>
<div class="line"><a name="l00454"></a><span class="lineno">  454</span>&#160;                <span class="keywordflow">if</span> (fSystemMenu) {</div>
<div class="line"><a name="l00455"></a><span class="lineno">  455</span>&#160;                    <a class="code" href="a00842.html#a69cf2e14dcefd941469ad5126e40f79a">xxxSendMessage</a>(pwnd, WM_SYSCOMMAND, cmd, 0x00010000L);</div>
<div class="line"><a name="l00456"></a><span class="lineno">  456</span>&#160;                } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00457"></a><span class="lineno">  457</span>&#160;                    <a class="code" href="a00842.html#a69cf2e14dcefd941469ad5126e40f79a">xxxSendMessage</a>(pwnd, WM_COMMAND, MAKELONG(cmd, 1), 0);</div>
<div class="line"><a name="l00458"></a><span class="lineno">  458</span>&#160;                }</div>
<div class="line"><a name="l00459"></a><span class="lineno">  459</span>&#160; </div>
<div class="line"><a name="l00460"></a><span class="lineno">  460</span>&#160;                <span class="comment">/*</span></div>
<div class="line"><a name="l00461"></a><span class="lineno">  461</span>&#160;<span class="comment">                 * Get outta here without unlocking the accel table again.</span></div>
<div class="line"><a name="l00462"></a><span class="lineno">  462</span>&#160;<span class="comment">                 */</span></div>
<div class="line"><a name="l00463"></a><span class="lineno">  463</span>&#160;                <span class="keywordflow">goto</span> InvalidWindow;</div>
<div class="line"><a name="l00464"></a><span class="lineno">  464</span>&#160;            }</div>
<div class="line"><a name="l00465"></a><span class="lineno">  465</span>&#160;        }</div>
<div class="line"><a name="l00466"></a><span class="lineno">  466</span>&#160; </div>
<div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160;    Next:</div>
<div class="line"><a name="l00468"></a><span class="lineno">  468</span>&#160;        paccel++;</div>
<div class="line"><a name="l00469"></a><span class="lineno">  469</span>&#160; </div>
<div class="line"><a name="l00470"></a><span class="lineno">  470</span>&#160;    } <span class="keywordflow">while</span> (!(flags &amp; FLASTKEY) &amp;&amp; !fFound);</div>
<div class="line"><a name="l00471"></a><span class="lineno">  471</span>&#160; </div>
<div class="line"><a name="l00472"></a><span class="lineno">  472</span>&#160; </div>
<div class="line"><a name="l00473"></a><span class="lineno">  473</span>&#160;InvalidWindow:</div>
<div class="line"><a name="l00474"></a><span class="lineno">  474</span>&#160;    <span class="keywordflow">return</span> fFound;</div>
<div class="line"><a name="l00475"></a><span class="lineno">  475</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00731_source.html#l00026">_GetKeyState()</a>, <a class="el" href="a00899_source.html#l01856">tagACCELTABLE::accel</a>, <a class="el" href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock()</a>, <a class="el" href="a00563_source.html#l00175">DWORD</a>, <a class="el" href="a00365_source.html#l01389">tagWND::head</a>, <a class="el" href="a00347_source.html#l00452">KLLF_ALTGR</a>, <a class="el" href="a00365_source.html#l01167">_HANDLEENTRY::pOwner</a>, <a class="el" href="a00263_source.html#l00526">PtiCurrent()</a>, <a class="el" href="a00608_source.html#l00310">RtlInitUnicodeStringOrId()</a>, <a class="el" href="a00797_source.html#l00104">SetSysMenu()</a>, <a class="el" href="a00365_source.html#l01413">tagWND::spmenu</a>, <a class="el" href="a00365_source.html#l01412">tagWND::spmenuSys</a>, <a class="el" href="a00758_source.html#l00491">SystoChar()</a>, <a class="el" href="a00758_source.html#l00145">TA_DISABLED</a>, <a class="el" href="a00899.html#abfae1dfb48db23dcea4494f7990ad6a6">ThreadLock()</a>, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT()</a>, <a class="el" href="a00950_source.html#l00117">UserAssert</a>, <a class="el" href="a00899.html#a53010a6d3530f652eb7b7d22f9113838">xxxClientLoadMenu()</a>, <a class="el" href="a00842_source.html#l00613">xxxSendMessage()</a> , 以及 <a class="el" href="a00758_source.html#l00147">xxxTA_AccelerateMenu()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a03614_source.html#l01601">NtUserTranslateAccelerator()</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="aa00758_html_ad353d117c269a07a9acba77e1b8e3ed5"><div class="ttname"><a href="a00758.html#ad353d117c269a07a9acba77e1b8e3ed5">ItemContainingSubMenu</a></div><div class="ttdeci">int ItemContainingSubMenu(PMENU pmainMenu, UINT wID)</div><div class="ttdef"><b>Definition:</b> <a href="a00758_source.html#l00022">mnaccel.c:22</a></div></div>
<div class="ttc" id="aa00899_html_ae32c9ddc596e9e0cc6dd465bea1c44b0"><div class="ttname"><a href="a00899.html#ae32c9ddc596e9e0cc6dd465bea1c44b0">LPACCELTABLE</a></div><div class="ttdeci">struct tagACCELTABLE * LPACCELTABLE</div></div>
<div class="ttc" id="aa02621_html"><div class="ttname"><a href="a02621.html">tagITEM</a></div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01958">user.h:1958</a></div></div>
<div class="ttc" id="aa02581_html_aa9cb183920d0decbae34685c0451ff0f"><div class="ttname"><a href="a02581.html#aa9cb183920d0decbae34685c0451ff0f">tagWND::spmenuSys</a></div><div class="ttdeci">struct tagMENU * spmenuSys</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01412">user.h:1412</a></div></div>
<div class="ttc" id="aa02553_html"><div class="ttname"><a href="a02553.html">_HANDLEENTRY</a></div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01165">user.h:1165</a></div></div>
<div class="ttc" id="aa00773_html_a27c05b907e80b8bbf86c005d8ad434bb"><div class="ttname"><a href="a00773.html#a27c05b907e80b8bbf86c005d8ad434bb">xxxMNInvertItem</a></div><div class="ttdeci">PITEM xxxMNInvertItem(PWND pwnd, PMENU pmenu, int itemNumber, PWND pwndNotify, BOOL fOn)</div><div class="ttdef"><b>Definition:</b> <a href="a00773_source.html#l01470">mndraw.c:1470</a></div></div>
<div class="ttc" id="aa00899_html_a53010a6d3530f652eb7b7d22f9113838"><div class="ttname"><a href="a00899.html#a53010a6d3530f652eb7b7d22f9113838">xxxClientLoadMenu</a></div><div class="ttdeci">PMENU xxxClientLoadMenu(HANDLE hmod, PUNICODE_STRING pstrName)</div></div>
<div class="ttc" id="aa00758_html_a217c980ac9e996a95b12e51927c1d81b"><div class="ttname"><a href="a00758.html#a217c980ac9e996a95b12e51927c1d81b">TA_DISABLED</a></div><div class="ttdeci">#define TA_DISABLED</div><div class="ttdef"><b>Definition:</b> <a href="a00758_source.html#l00145">mnaccel.c:145</a></div></div>
<div class="ttc" id="aa00365_html_a4f33bf462d284b706f2f453e2bddd203"><div class="ttname"><a href="a00365.html#a4f33bf462d284b706f2f453e2bddd203">_GetKeyState</a></div><div class="ttdeci">SHORT _GetKeyState(int vk)</div><div class="ttdef"><b>Definition:</b> <a href="a00731_source.html#l00026">keyboard.c:26</a></div></div>
<div class="ttc" id="aa00695_html_a857d137de0592e36caec4b6e0f5021cb"><div class="ttname"><a href="a00695.html#a857d137de0592e36caec4b6e0f5021cb">HMAllocObject</a></div><div class="ttdeci">PVOID HMAllocObject(PTHREADINFO ptiOwner, PDESKTOP pdeskSrc, BYTE bType, DWORD size)</div><div class="ttdef"><b>Definition:</b> <a href="a00695_source.html#l00314">handtabl.c:314</a></div></div>
<div class="ttc" id="aa00899_html_a4915e3a8051f894bf2b7b95d121e9014"><div class="ttname"><a href="a00899.html#a4915e3a8051f894bf2b7b95d121e9014">ACCELTABLE</a></div><div class="ttdeci">struct tagACCELTABLE ACCELTABLE</div></div>
<div class="ttc" id="aa00371_html_a162a73e20dfabca084a3ebb4581631a8"><div class="ttname"><a href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a></div><div class="ttdeci">#define UserAssert(exp)</div><div class="ttdef"><b>Definition:</b> <a href="a00950_source.html#l00117">usersrv.h:117</a></div></div>
<div class="ttc" id="aa00758_html_aa53730e02759f59818810d47bfabe94d"><div class="ttname"><a href="a00758.html#aa53730e02759f59818810d47bfabe94d">UT_FindTopLevelMenuIndex</a></div><div class="ttdeci">int UT_FindTopLevelMenuIndex(PMENU pMenu, UINT cmd)</div><div class="ttdef"><b>Definition:</b> <a href="a00758_source.html#l00086">mnaccel.c:86</a></div></div>
<div class="ttc" id="aa00695_html_a4e6ee8871cf6323bdd048608605667b1"><div class="ttname"><a href="a00695.html#a4e6ee8871cf6323bdd048608605667b1">HMFreeObject</a></div><div class="ttdeci">BOOL HMFreeObject(PVOID pobj)</div><div class="ttdef"><b>Definition:</b> <a href="a00695_source.html#l00575">handtabl.c:575</a></div></div>
<div class="ttc" id="aa00842_html_a69cf2e14dcefd941469ad5126e40f79a"><div class="ttname"><a href="a00842.html#a69cf2e14dcefd941469ad5126e40f79a">xxxSendMessage</a></div><div class="ttdeci">LONG xxxSendMessage(PWND pwnd, UINT message, DWORD wParam, LONG lParam)</div><div class="ttdef"><b>Definition:</b> <a href="a00842_source.html#l00613">sendmsg.c:613</a></div></div>
<div class="ttc" id="aa00257_html_a8315d2c807ba18ba9e528c40614b6173"><div class="ttname"><a href="a00257.html#a8315d2c807ba18ba9e528c40614b6173">PtiCurrent</a></div><div class="ttdeci">PTHREADINFO PtiCurrent(VOID)</div><div class="ttdef"><b>Definition:</b> <a href="a00263_source.html#l00526">winmgrc.c:526</a></div></div>
<div class="ttc" id="aa00608_html_a2f03d318ac2c5bd1f77147cebddfaf75"><div class="ttname"><a href="a00608.html#a2f03d318ac2c5bd1f77147cebddfaf75">RtlInitUnicodeStringOrId</a></div><div class="ttdeci">void RtlInitUnicodeStringOrId(PUNICODE_STRING pstrName, LPWSTR lpstrName)</div><div class="ttdef"><b>Definition:</b> <a href="a00608_source.html#l00310">base.c:310</a></div></div>
<div class="ttc" id="aa00131_html_a7ba1114bb968c151d68ff99178493f07"><div class="ttname"><a href="a00131.html#a7ba1114bb968c151d68ff99178493f07">SYS_ALTERNATE</a></div><div class="ttdeci">#define SYS_ALTERNATE</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01893">user.h:1893</a></div></div>
<div class="ttc" id="aa02833_html"><div class="ttname"><a href="a02833.html">tagACCELTABLE</a></div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l01853">userk.h:1853</a></div></div>
<div class="ttc" id="aa02581_html_a6be2d067ba15d4ec8cfc2e87922094f5"><div class="ttname"><a href="a02581.html#a6be2d067ba15d4ec8cfc2e87922094f5">tagWND::head</a></div><div class="ttdeci">THROBJHEAD head</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01389">user.h:1389</a></div></div>
<div class="ttc" id="aa00899_html_abfae1dfb48db23dcea4494f7990ad6a6"><div class="ttname"><a href="a00899.html#abfae1dfb48db23dcea4494f7990ad6a6">ThreadLock</a></div><div class="ttdeci">VOID ThreadLock(PVOID pobj, PTL ptl)</div></div>
<div class="ttc" id="aa02625_html_a3bf37b161e5822f38a2b0bc722c5ac50"><div class="ttname"><a href="a02625.html#a3bf37b161e5822f38a2b0bc722c5ac50">tagMENU::cItems</a></div><div class="ttdeci">UINT cItems</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l02000">user.h:2000</a></div></div>
<div class="ttc" id="aa02833_html_ad059ba09395cf3fc9c50ecd37b381e30"><div class="ttname"><a href="a02833.html#ad059ba09395cf3fc9c50ecd37b381e30">tagACCELTABLE::accel</a></div><div class="ttdeci">ACCEL accel[1]</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l01856">userk.h:1856</a></div></div>
<div class="ttc" id="aa02625_html"><div class="ttname"><a href="a02625.html">tagMENU</a></div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01992">user.h:1992</a></div></div>
<div class="ttc" id="aa00563_html_a074685e97e89d6aa2accdfcb82328699"><div class="ttname"><a href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a></div><div class="ttdeci">ddeml v[i&lt; inst &gt;][t&lt; type &gt;][hObj|pObj] Dump DDEML state information ddeml lists all ddeml instances for this process n ddeml t&lt; type &gt; lists all ddeml objects of the given type n n assumes link is first DWORD</div><div class="ttdef"><b>Definition:</b> <a href="a00563_source.html#l00175">exts.h:175</a></div></div>
<div class="ttc" id="aa02621_html_ac10ce08286532c51caca752ec8eb7e99"><div class="ttname"><a href="a02621.html#ac10ce08286532c51caca752ec8eb7e99">tagITEM::spSubMenu</a></div><div class="ttdeci">struct tagMENU * spSubMenu</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01962">user.h:1962</a></div></div>
<div class="ttc" id="aa02581_html_ad680eabbc65eb4d160362e2c73a19994"><div class="ttname"><a href="a02581.html#ad680eabbc65eb4d160362e2c73a19994">tagWND::spmenu</a></div><div class="ttdeci">struct tagMENU * spmenu</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01413">user.h:1413</a></div></div>
<div class="ttc" id="aa01881_html"><div class="ttname"><a href="a01881.html">_TL</a></div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00347">usercli.h:347</a></div></div>
<div class="ttc" id="aa00347_html_acf2af6af829e08806d9d90517f16c168"><div class="ttname"><a href="a00347.html#acf2af6af829e08806d9d90517f16c168">KLLF_ALTGR</a></div><div class="ttdeci">#define KLLF_ALTGR</div><div class="ttdef"><b>Definition:</b> <a href="a00347_source.html#l00452">kbd.h:452</a></div></div>
<div class="ttc" id="aa02553_html_a9151e22fb7a09159687c55acdeb8be14"><div class="ttname"><a href="a02553.html#a9151e22fb7a09159687c55acdeb8be14">_HANDLEENTRY::pOwner</a></div><div class="ttdeci">PVOID pOwner</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01167">user.h:1167</a></div></div>
<div class="ttc" id="aa02621_html_a549e2c4984de0719485737b35d6fc4b1"><div class="ttname"><a href="a02621.html#a549e2c4984de0719485737b35d6fc4b1">tagITEM::wID</a></div><div class="ttdeci">UINT wID</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l01961">user.h:1961</a></div></div>
<div class="ttc" id="aa00758_html_a2d8243d11664788f3b41f9b1b0dfb3cf"><div class="ttname"><a href="a00758.html#a2d8243d11664788f3b41f9b1b0dfb3cf">xxxTA_AccelerateMenu</a></div><div class="ttdeci">UINT xxxTA_AccelerateMenu(PWND pwnd, PMENU pMenu, UINT cmd)</div><div class="ttdef"><b>Definition:</b> <a href="a00758_source.html#l00147">mnaccel.c:147</a></div></div>
<div class="ttc" id="aa02833_html_a119a00bf39188d668c35b5ed2a657a80"><div class="ttname"><a href="a02833.html#a119a00bf39188d668c35b5ed2a657a80">tagACCELTABLE::cAccel</a></div><div class="ttdeci">UINT cAccel</div><div class="ttdef"><b>Definition:</b> <a href="a00899_source.html#l01855">userk.h:1855</a></div></div>
<div class="ttc" id="aa00797_html_a4b97bcc210438bef55a6dfac540effb3"><div class="ttname"><a href="a00797.html#a4b97bcc210438bef55a6dfac540effb3">SetSysMenu</a></div><div class="ttdeci">void SetSysMenu(PWND pwnd)</div><div class="ttdef"><b>Definition:</b> <a href="a00797_source.html#l00104">mnsys.c:104</a></div></div>
<div class="ttc" id="aa00365_html_a600b2eecb3e014ccef3cbdb2b38209b5"><div class="ttname"><a href="a00365.html#a600b2eecb3e014ccef3cbdb2b38209b5">MNLookUpItem</a></div><div class="ttdeci">PITEM MNLookUpItem(PMENU pMenu, UINT wCmd, BOOL fByPosition, PMENU *ppMenuItemIsOn)</div><div class="ttdef"><b>Definition:</b> <a href="a03752_source.html#l00334">rtl/wow.c:334</a></div></div>
<div class="ttc" id="aa03608_html_afd1a0e78d1f88954d93e48ab3821781f"><div class="ttname"><a href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a></div><div class="ttdeci">typedef UINT(FAR WINAPI *MSGSOUNDPROC)()</div></div>
<div class="ttc" id="aa00899_html_a70b09c3e2b495630f4205d34be505afb"><div class="ttname"><a href="a00899.html#a70b09c3e2b495630f4205d34be505afb">CheckLock</a></div><div class="ttdeci">VOID CheckLock(PVOID pobj)</div></div>
<div class="ttc" id="aa02625_html_ae6172b08ed30615d88290ea4b4b6a70c"><div class="ttname"><a href="a02625.html#ae6172b08ed30615d88290ea4b4b6a70c">tagMENU::rgItems</a></div><div class="ttdeci">PITEM rgItems</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l02005">user.h:2005</a></div></div>
<div class="ttc" id="aa00767_html_ac48c8123933cf1b3a4ba8916601b65a3"><div class="ttname"><a href="a00767.html#ac48c8123933cf1b3a4ba8916601b65a3">xxxMNRecomputeBarIfNeeded</a></div><div class="ttdeci">void xxxMNRecomputeBarIfNeeded(PWND pwndNotify, PMENU pMenu)</div><div class="ttdef"><b>Definition:</b> <a href="a00767_source.html#l00768">mncomput.c:768</a></div></div>
<div class="ttc" id="aa00758_html_a3be166f54239bf3e2b1b06ab17687c33"><div class="ttname"><a href="a00758.html#a3be166f54239bf3e2b1b06ab17687c33">SystoChar</a></div><div class="ttdeci">int SystoChar(UINT message, DWORD lParam)</div><div class="ttdef"><b>Definition:</b> <a href="a00758_source.html#l00491">mnaccel.c:491</a></div></div>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_885cc87fac2d91e269af0a5a959fa5f6.html">E:</a></li><li class="navelem"><a class="el" href="dir_4e091ed8704426a7a4980368ba259fde.html">git</a></li><li class="navelem"><a class="el" href="dir_cd70cb5eb491250157f2d55d3ff4b13e.html">backup</a></li><li class="navelem"><a class="el" href="dir_ba2b673b566ba104b956abdc6dec0552.html">org</a></li><li class="navelem"><a class="el" href="dir_5bb0003d7907b45051943541418399f5.html">ntuser</a></li><li class="navelem"><a class="el" href="dir_2a0a56546b70a0973705719e6a88eab3.html">kernel</a></li><li class="navelem"><a class="el" href="a00758.html">mnaccel.c</a></li>
    <li class="footer">制作者
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li>
  </ul>
</div>
</body>
</html>
